home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6299 < prev    next >
Encoding:
Text File  |  1996-08-05  |  881 b   |  45 lines

  1. Path: news-srv.essi.fr!usenet
  2. From: Franck Zoccolo <zoccolo@essi.fr>
  3. Newsgroups: comp.lang.c++
  4. Subject: Variable arguments and Overloading...
  5. Date: Wed, 07 Feb 1996 17:50:04 +0100
  6. Organization: Ecole Superieure en Sciences Informatiques (ESSI)
  7. Message-ID: <3118D83C.79CA@essi.fr>
  8. NNTP-Posting-Host: trinquette.essi.fr
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
  13.  
  14. I need to overload a member function which have variable arguments.
  15. In the body of that function, I need to call the parent implementation.
  16. How could I do this ??
  17.  
  18. Example:
  19.  
  20. class A
  21. {
  22.    void foo(int x, ...);
  23. };
  24.  
  25. class B: public A
  26. {
  27.    void foo(int x, ...);
  28. };
  29.  
  30.  
  31. void B::foo(int x, ...)
  32. {
  33.   A:foo(x, ?????????? );   // How to do that ?
  34. }
  35.  
  36.  
  37. Please answer by mail...
  38. Thanks.
  39.  
  40.  
  41. --
  42. Franck ZOCCOLO
  43. Computer Science Student.
  44. .
  45.